package com.example.account.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AccountDetailMapper {

    @Insert("insert into account_detail(order_id,user_id,bal,after_bal,pay_type,type,create_time,remarks,explains) value" +
            "(#{order_id},#{user_id},#{bal},#{after_bal},#{pay_type},#{type},#{create_time},#{remarks},#{explains})")
    int addAccountDetail(@Param("order_id") String orderId, @Param("user_id") String userId, @Param("bal") String bal, @Param("after_bal") String afterBal,
                         @Param("pay_type") int payType, @Param("type") int type, @Param("create_time") String createTime,
                         @Param("remarks") String remarks, @Param("explains") String explains);
}
